#pragma once
#include<string>
#include<iomanip>
#include<iostream>
#include<istream>
#include<ostream>
#include<fstream>
#include<sstream>

using namespace std;
class Vehicle
{
private: 
	string brand;
	int year;
	double purchasingPrice;
	double sellingPrice;
public:
	Vehicle();
	Vehicle(string b, int y, double pP, double sP);

	string GetBrand(){ return brand;}
	void SetBrand(string b){ brand=b; }

	int GetYear(){ return year;}
	void SetYear(int y){ year=y;}

	double GetPurchasingPrice(){ return purchasingPrice;}
	void SetPurchasingPrice(double pP) { purchasingPrice=pP;}

	double GetSellingPrice(){ return sellingPrice;}
	void SetSellingPrice(double sP) { sellingPrice=sP;}


	void Write();
	void Read();

	friend ostream & operator << (ostream & o, const Vehicle & vehicle);
	friend istream & operator >> (istream & in, Vehicle & vehicle);
};

